import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: '/',
    redirect: '/map'
  },
  {
    path: '/map',
    name: 'map',
    component:() => import('../views/map.vue')
  },
  {
    // 牛
    path: '/cow',
    name: 'cow',
    component:() => import('../views/cow.vue')
  },
  {
    path: '/rabbit',
    name: 'rabbit',
    component:() => import('../views/rabbit.vue'),
  }
]

const router = new VueRouter({
  routes
})

export default router
